import {nanoid} from 'nanoid'
export default function getUserTempId(){
    //先看本地有没有userTempId
    let userTempId = localStorage.getItem('userTempId')
    //有就返回
    if(userTempId) return userTempId
    //没有就设置一个
    userTempId = nanoid()
    localStorage.setItem('userTempId',userTempId)
    return userTempId
}